home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr27
/
fwkcs200.zip
/
REPLACE.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-01-16
|
9KB
|
256 lines
@echo off
if exist register.key goto rk
cls
echo.
echo.
echo If you registered FWKCS(TM) Version 1.19 or later before 1995 Jan 16,
echo please copy your registration keyfile into this directory, and name
echo the keyfile REGISTER.KEY. Then restart this REPLACE program.
echo.
echo If you do not have an FWKCS registration key, please make sure
echo that your computer system's date is set to today's date.
echo.
echo.
echo To stop this program, press Ctrl+C, then y
echo.
pause
:rk
cls
if not .%2 == . goto az
if not exist x_add.lst echo.
echo Your use of this software is at solely your own risk.
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if not exist x_add.lst echo.
echo This software is intended for use under DOS 3.30 or later, or in a suitable
echo DOS session under a multitasking system (including IBM OS/2 2.0 or later).
echo.
echo If you encounter any system conflicts when using this software,
echo please check your system configuration (and DOS session settings).
echo.
echo If the problem remains, please advise the author at
echo.
echo Internet email address if no reply, write to Fred Kantor
echo fred.kantor@factory.com 523 West 112 Street
echo New York, NY 10025
echo.
if exist x_add.lst echo Automatic exclusion list X_ADD.LST has been found, to add to data base.
if exist x_add.lst echo.
if exist register.key goto rk1
echo Note: REPLACE lets you run an unregistered copy of FWKCS, with a copy of
echo REGISTER.FRM in the same directory with FWKCS.EXE. You can put the
echo \CSA directory on your PATH, and call FWKCS from anywhere on your
echo system.
echo.
echo The suggested test time is up to 30 days. To register, see REGISTER.FRM.
echo ~~~~~~~~~~~~~
:rk1
pause
cls
:az
echo Part of FWKCS(TM) Contents_Signature System, Version 2.00.
echo (C)Copyright Frederick W. Kantor 1989, 1995. All rights reserved.
echo.
echo Your use of the FWKCS(TM) Contents_Signature System is at solely your own
echo risk. For safety, please have proper backups of your files.
echo.
echo REPLACE.BAT to replace a working FWKCS(TM) system, Ver. 1.12 or later;
echo for use in same directory with FWKCS200.ZIP, FWKCS.200, and FWKCS_TM.200.
echo To proceed, have QBASIC, GWBASIC, BASICA, or BASIC available on your path, as
echo appropriate for your operating system and hardware;
echo have a working copy of FWKCS in \CSA, containing your macros, paths, etc..
echo (If you are installing FWKCS(TM) for the first time, use INSTALL.BAT.)
echo ~~~~~~~~~~~
echo Usage: REPLACE d D N C "<enter>"
echo where d without ":" is the drive for the \CS directory
echo D without ":" is the drive for the \CSA directory
echo N = 0 get default settings from old \CSA\FWKCS, Ver. 1.12 or later.
echo 1 install default settings for Ver. 2.00 (including new options).
echo C = 0 process uploads directly; 1 run as client under FWKCS host.
if .%1 == ./* goto end
if .%1 == . goto nd
if .%2 == . goto nod2
if .%3 == .0 goto aa
if not .%3 == .1 goto bi
:aa
if .%4 == .0 goto ab
if not .%4 == .1 goto bj
:ab
echo.
echo Are these drives correct: %1:\CS and %2:\CSA ? If not, stop now!
echo To quit, press Ctrl+C, then y ~~~~~~~~
echo.
pause
if exist fwkcs200.zip attrib -r fwkcs200.zip > nul
if exist fwkcs200.exe attrib -r fwkcs200.exe > nul
if exist 0_setup.bat del 0_setup.bat > nul
if exist 0_setup.bat attrib -r 0_setup.bat > nul
if exist 0_setup.bat del 0_setup.bat > nul
if exist 2_setup.bat del 2_setup.bat > nul
if exist 2_setup.bat attrib -r 2_setup.bat > nul
if exist 2_setup.bat del 2_setup.bat > nul
if exist s_setup.bat del s_setup.bat > nul
if exist s_setup.bat attrib -r s_setup.bat > nul
if exist s_setup.bat del s_setup.bat > nul
if exist myowncsl.srt del myowncsl.srt > nul
if exist myowncsl.srt attrib -r myowncsl.srt > nul
if exist myowncsl.srt del myowncsl.srt > nul
if exist #@!#@!$$.@!@ del #@!#@!$$.@!@ > nul
if exist #@!#@!$$.@!@ attrib -r #@!#@!$$.@!@ > nul
if exist #@!#@!$$.@!@ del #@!#@!$$.@!@ > nul
if exist $@!#@!$$.@!@ del $@!#@!$$.@!@ > nul
if exist $@!#@!$$.@!@ attrib -r $@!#@!$$.@!@ > nul
if exist $@!#@!$$.@!@ del $@!#@!$$.@!@ > nul
if exist $@!#@$!$.@!@ del $@!#@$!$.@!@ > nul
if exist $@!#@$!$.@!@ attrib -r $@!#@$!$.@!@ > nul
if exist $@!#@$!$.@!@ del $@!#@$!$.@!@ > nul
cls
if not exist fwkcs200.exe goto n1
if exist fwkhi.com del fwkhi.com > nul
if exist fwkhi.com attrib -r fwkhi.com > nul
if exist fwkhi.com del fwkhi.com > nul
fwkcs200 -o fwkhi.com > nul
if exist fwkhi.com goto n2
:n1
if not exist fwkcs.200 goto nd
if not exist fwkcs_tm.200 goto cm
ren fwkcs_tm.200 fwkcs_tm.com > nul
fwkcs_tm < fwkcs.200 > fwkcs200.exe
if errorlevel 1 goto fbad
ren fwkcs_tm.com fwkcs_tm.200 > nul
fwkcs200 -o fwkhi.com > nul
if not exist fwkhi.com goto fbad
:n2
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo Do you wish to automatically capture the contents_signatures
echo of the files in FWKCS(TM) version 2.00 for future reference? (Y/N)
echo.
echo (Because of the way the files are packaged, this step is provided to make
echo it much easier to capture their contents_signatures. Unless you have a
echo good reason to not do so, it is suggested that you press Y for Yes.)
echo.
fwkhi /yn
if not errorlevel 1 goto nocs
cls
if exist myowncsl.srt del myowncsl.srt > nul
if exist myowncsl.srt attrib -r myowncsl.srt > nul
if exist myowncsl.srt del myowncsl.srt > nul
if exist fwkcs200.zip ren fwkcs200.zip $@!#@!$$.@!@ > nul
fwkcs200 -o fwkcs.exe register.frm > nul
if not exist fwkcs.exe goto nz
if not exist register.key goto nk
fwkcs /t20register[+register.key]
fwkcs /t20register > nul
if not errorlevel 98 goto wk
echo.
echo Your REGISTER.KEY file was apparently defective.
echo.
echo Continuing in unregistered mode...
echo.
:nk
fwkcs
if not errorlevel 99 goto id
:wk
ren fwkcs200.exe fwkcs200.zip > nul
fwkcs /rt20/1 fwkcs200.zip #@!#@!$$.@!@ > nul
ren fwkcs200.zip fwkcs200.exe > nul
if exist $@!#@!$$.@!@ ren $@!#@!$$.@!@ fwkcs200.zip > nul
if exist fwkcs200.zip fwkcs /t20/1 fwkcs200.zip >> #@!#@!$$.@!@
if exist fwkcs200.zip goto kcz
if exist #@@!##@_._$_ del #@@!##@_._$_ > nul
if exist #@@!##@_._$_ attrib -r #@@!##@_._$_ > nul
if exist FILE_ID.DIZ echo FILE_ID.DIZ > #@@!##@_._$_
if exist README.1ST echo README.1ST >> #@@!##@_._$_
if exist README.TXT echo README.TXT >> #@@!##@_._$_
if exist WHATSNEW.TXT echo WHATSNEW.TXT >> #@@!##@_._$_
if exist REGISTER.DOC echo REGISTER.DOC >> #@@!##@_._$_
if exist REGISTER.FRM echo REGISTER.FRM >> #@@!##@_._$_
if exist INSTALL.BAT echo INSTALL.BAT >> #@@!##@_._$_
if exist REPLACE.BAT echo REPLACE.BAT >> #@@!##@_._$_
if exist QIKSTART.BAT echo QIKSTART.BAT >> #@@!##@_._$_
if exist GETLOOK.BAT echo GETLOOK.BAT >> #@@!##@_._$_
if exist FWKCS.200 echo FWKCS.200 >> #@@!##@_._$_
if exist FWKCS_TM.200 echo FWKCS_TM.200 >> #@@!##@_._$_
fwkcs /t20/1cp #@@!##@_._$_ >> #@!#@!$$.@!@
del #@@!##@_._$_ > nul
:kcz
fwkcs #@!#@!$$.@!@ /rt20a7.8v",!" $@!#@$!$.@!@ > nul
del #@!#@!$$.@!@ > nul
fwkcs $@!#@$!$.@!@ /rt20s > nul
if exist $$mt$$ del $$mt$$ > nul
if exist $$mt$$ fwkcs /rt30a7.7c $$mt$$ > nul
fwkcs $$mt$$ /rt30mn > nul
fwkcs $@!#@$!$.@!@ $$mt$$ myowncsl.srt /rt20ms > nul
del $$mt$$ > nul
del $@!#@$!$.@!@ > nul
del fwkcs.exe > nul
:nocs
fwkcs200 -o s_setup.bat > nul
del fwkhi.com > nul
echo replacing with FWKCS Version 2.00 > replm200.200
s_setup %1 ! %2 %3 %4
:nv200
echo.
echo REPLACE.BAT is for use in the same directory together with
echo files FWKCS.200 and FWKCS_TM.200 .
goto clu
:bi
echo.
echo I need N = 0 or 1 ; 0 to get your old defaults, 1 to install new defaults.
goto helpr
:bj
echo.
echo I need C = 0 or 1 ; 0 for direct processing of uploads at (each) node,
echo 1 to set up node(s) as client(s) under FWKCS host.
goto helpr
:nz
echo.
echo Problem in running self_extraction.
goto fbad
:id
if exist fwkcs200.exe del fwkcs200.exe > nul
if exist $@!#@!$$.@!@ ren $@!#@!$$.@!@ fwkcs200.zip > nul
del fwkcs.exe > nul
echo.
echo Bad system date!
echo.
echo Execution aborted!
echo.
echo After you have set your computer system's date to today's date,
goto helpr
:fbad
del fwkcs200.exe > nul
ren fwkcs_tm.com fwkcs_tm.200 > nul
echo.
echo FWKCS.200 or FWKCS_TM.200 appears defective or incompatible.
echo.
echo Execution aborted.
:clu
echo.
echo Please clean up, and try again. See README.TXT.
goto end
:cm
echo.
echo I need FWKCS_TM.200.
echo.
echo I quit!
goto end
:nod2
echo.
echo I need two drive entries (they can both have the same letter).
:helpr
echo.
echo Please try again...
goto end
:nd
echo.
echo Please see "Usage", above...
:end
if exist fwkhi.com del fwkhi.com > nul
echo.